import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { SharedModule } from '../../../shared/shared.module';
import { WeekworkComponent } from './weekwork.component';
import { WeekworkDetailComponent } from './weekwork.detail.component';
import { WeekWorkService } from './weekwork.service';
import { WeekworkTableComponent } from './weekwork.table.component';
@NgModule({
  imports: [
    CommonModule,
    SharedModule,
    RouterModule.forChild([
      {
        path: '',
        component: WeekworkComponent
      },{
        path: ':type',
        component: WeekworkComponent
      },
    ])
  ],
  declarations: [WeekworkComponent,WeekworkDetailComponent,WeekworkTableComponent],
  exports: [RouterModule],
  providers:[WeekWorkService]
})
export class WeekworkModule { }
